﻿namespace Innovative.ProXr
{
	/// <summary>
	/// Converts a relay count to a RelayByte array.
	/// </summary>
	public class Int32ParameterConverter : IParameterConverter<int>
	{
		RelayByte[] IParameterConverter<int>.Convert(int parameter)
		{
			RelayByte[] returnValue = new RelayByte[1];

			returnValue[0] = (byte)parameter;

			return returnValue;
		}
	}
}
